// pages/product/components/detail.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    isEdit: { // 是否编辑
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    logo: '',
    introImages: [
      'http://duqin.oss-cn-beijing.aliyuncs.com/demo/20210425/7fe87d470820454798eff1c46eebe94c.jpg',
      'http://duqin.oss-cn-beijing.aliyuncs.com/demo/20210420/da88a8239713404ab6e3030b4c5afba2.jpg',
      'http://duqin.oss-cn-beijing.aliyuncs.com/demo/20210420/da88a8239713404ab6e3030b4c5afba2.jpg',
    ],
    uploadLimit: 3,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onSuccessLogo(event) {
      this.setData({
        logo: event.detail.url
      })
    },
  
    onSuccessIntroImage(event) {
      this.setData({
        introImages: event.detail.url
      })
    },
  }
})
